package net.hhk.data;

import java.util.Date;

public class Tweet {
	private String TweetText;
	private int TweetId;
	private String device;
	private String time;
	private int totalRetweet;
	private int totalFavorite;
	private int replyTweet;
	private int userid;
	private User user;
	private String imageUrl;
	private String userName;
	private String fullName;
	private int isRetweet;
	private String nameRweet;
	private Boolean isMyFavorite;
	private Boolean isMyRetweet;
	private String post_url_images = "";
	private int isReply =0;

	public Tweet(int tweetid, String urlImagine, String text, String userName,
			String fullName, int isRetweet) {
		user = new User();
		this.TweetId = tweetid;
		this.TweetText = text;
		imageUrl = Constant.HOST + urlImagine;
		this.userName = userName;
		this.fullName = fullName;
		// this.user.setAvatar(urlImagine);
		this.user.setUsername(userName);
		this.isRetweet = isRetweet;
	}

	public String getTweetText() {
		return TweetText;
	}

	public void setTweetText(String tweetText) {
		TweetText = tweetText;
	}

	public int getTweetId() {
		return TweetId;
	}

	public void setTweetId(int tweetId) {
		TweetId = tweetId;
	}

	public String getDevice() {
		return device;
	}

	public void setDevice(String device) {
		this.device = device;
	}

	

	public int getTotalRetweet() {
		return totalRetweet;
	}

	public void setTotalRetweet(int totalRetweet) {
		this.totalRetweet = totalRetweet;
	}

	public int getTotalFavorite() {
		return totalFavorite;
	}

	public void setTotalFavorite(int totalFavorite) {
		this.totalFavorite = totalFavorite;
	}

	public int getReplyTweet() {
		return replyTweet;
	}

	public void setReplyTweet(int replyTweet) {
		this.replyTweet = replyTweet;
	}

	public int getUserid() {
		return userid;
	}

	public void setUserid(int userid) {
		this.userid = userid;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	public String getNameRweet() {
		if (isRetweet > 0)
			return nameRweet;
		else
			return "";
	}

	public void setNameRweet(String nameRweet) {
		this.nameRweet = nameRweet;
	}

	public int getIsRetweet() {
		return isRetweet;
	}

	public void setIsRetweet(int isRetweet) {
		this.isRetweet = isRetweet;
	}

	public Boolean getIsMyFavorite() {
		return isMyFavorite;
	}

	public void setIsMyFavorite(Boolean isMyFavorite) {
		this.isMyFavorite = isMyFavorite;
	}

	public Boolean getIsMyRetweet() {
		return isMyRetweet;
	}

	public void setIsMyRetweet(Boolean isMyRetweet) {
		this.isMyRetweet = isMyRetweet;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getPost_url_images() {
		return post_url_images;
	}

	public void setPost_url_images(String post_url_images) {
		this.post_url_images = post_url_images;
	}

	public int getIsReply() {
		return isReply;
	}

	public void setIsReply(int isReply) {
		this.isReply = isReply;
	}

}
